package com.ddtech.business.web.entity;

import com.ddtech.business.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问答表
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Answer对象", description="问答表")
public class Answer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "pid")
    private String pid;

    @ApiModelProperty(value = "章节id")
    private String chapterId;

    @ApiModelProperty(value = "章节名称")
    private String chapterName;

    @ApiModelProperty(value = "课程id")
    private String courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "问答内容")
    private String answerContent;

    @ApiModelProperty(value = "1、提问、2评论")
    private Integer type;

    @ApiModelProperty(value = "1:审核通过 0：未审核 2：审核不通过")
    private Integer status;

    @ApiModelProperty(value = "审核说明")
    private String remark;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "是否公开")
    private Integer isPublic;

    public static final String USER_ID="user_id";

}
